home *** CD-ROM | disk | FTP | other *** search
/ Celestin Apprentice 4 / Apprentice-Release4.iso / Languages / Mops 2.7 / Mops Manual / Part I.srd / Part I.srd.rsrc / PICT_59.png < prev    next >
Portable Network Graphic  |  1996-01-02  |  131KB  |  816x1056  |  8-bit (256 colors)
Labels: book | reckoner | sky
OCR: Lesson 12 Loops Computer programs frequently need certain operations to be repeated specified number of times For eximple, finding the sum of 10 numbers in the stack normally take stream of nine statements. To programmer's way "of thinking, this makes the program several steps longer than necessary iprogrammer would rather find shortcut way Fof repeating that opera tion as many times as needed to do the job, witht increasing program size with long series of identical commands. That's where the loop comes in Aloop sets up kind of merry -go-round for your program. with a beginning and an end At the end of the loop is an instruction that tells the program to "loop back" the beginning of the loop All the statements betw een the two are repeated in their entirety each time program execution goe ...